package com.rajeshDyadav.datetime;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTimeTest02 {
    public static void main(String[] args) {
	Date date = new Date();
	SimpleDateFormat sdf = new SimpleDateFormat();
	sdf.applyPattern("dd-MM-yyyy");
	String sdate = sdf.format(date);
	System.out.println(sdate);
    }
}
